package freshmanspecial.mredrock.com.welcomefreshman.Fragment;

import android.widget.ImageView;

import com.bumptech.glide.Glide;

import freshmanspecial.mredrock.com.welcomefreshman.Base.BaseFragment;
import freshmanspecial.mredrock.com.welcomefreshman.R;

/**
 * Created by Administrator on 2017/8/13 0013.
 */

public class Picture extends BaseFragment {
    private String url;
    private ImageView imageView;
    public Picture(String url){
        this.url = url;
    }
    @Override
    protected void addDefaultData() {
        Glide.with(getActivity()).load(url).into(imageView);
    }

    @Override
    protected void initView() {
        imageView = $(R.id.pic_item);
    }

    @Override
    protected int getResourceId() {
        return R.layout.special_2017_picture_item;
    }
}
